package com.yanqu.road.entity.log.vehiclesoul;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_vehicle_soul_open", desc = "魂石开孔日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "vehsoul_open")
public class LogVehicleSoulOpen extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "珍兽配置id", dataAttribute = "pet_name")
    private int templateId;
    @FieldTypeAnnotation(desc = "珍兽uid", dataAttribute = "pet_id")
    private String vehicleId;
    @FieldTypeAnnotation(desc = "盘位位置", dataAttribute = "vehsoul_pos")
    private int position;
    @FieldTypeAnnotation(desc = "消耗道具数量", dataAttribute = "vehsoul_opencost")
    private int cost;
    @FieldTypeAnnotation(desc = "剩余道具数量", dataAttribute = "vehsoul_openleft")
    private int nowNum;
    @FieldTypeAnnotation(desc = "当前开盘数量", dataAttribute = "vehsoul_opennum")
    private int positionCount;


    public LogVehicleSoulOpen(long userId, int templateId, String vehicleId, int position, int cost, int nowNum, int positionCount) {
        this.userId = userId;
        this.templateId = templateId;
        this.vehicleId = vehicleId;
        this.position = position;
        this.cost = cost;
        this.nowNum = nowNum;
        this.positionCount = positionCount;
    }

    public long getUserId() {
        return userId;
    }

}
